Don't leak the cairo context Closes bug #308581.
authorKjartan Maraas <kmaraas@gnome.org>
Tue, 21 Jun 2005 22:46:30 +0000 (22:46 +0000)
committerKjartan Maraas <kmaraas@src.gnome.org>
Tue, 21 Jun 2005 22:46:30 +0000 (22:46 +0000)
2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>

* gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
Closes bug #308581.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkhsv.c

index f379b8ba19d7ee34a9d70c232083277dda05241c..23aed6d9acab13e5b1c6d2bc831f50efb989516e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
+       Closes bug #308581.
+
 2005-06-21  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkarrow.c:
index f379b8ba19d7ee34a9d70c232083277dda05241c..23aed6d9acab13e5b1c6d2bc831f50efb989516e 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
+       Closes bug #308581.
+
 2005-06-21  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkarrow.c:
index f379b8ba19d7ee34a9d70c232083277dda05241c..23aed6d9acab13e5b1c6d2bc831f50efb989516e 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-22  Kjartan Maraas  <kmaraas@gnome.org>
+
+       * gtk/gtkhsv.c: (gtk_hsv_expose): Don't leak the cairo context
+       Closes bug #308581.
+
 2005-06-21  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkarrow.c:
index b73f59d7a4e3ae051f2a26f81a2f7b36684bd182..58ea87922d4a942b677d0494be18c83b5c04e5d8 100644 (file)
@@ -1305,7 +1305,8 @@ gtk_hsv_expose (GtkWidget      *widget,
         dest.x - widget->allocation.x,
         dest.y - widget->allocation.y,
         dest.width, dest.height);
-  
+  cairo_destroy (cr);
+
   if (GTK_WIDGET_HAS_FOCUS (hsv) && priv->focus_on_ring)
     gtk_paint_focus (widget->style, widget->window,
                     GTK_WIDGET_STATE (widget),